package com.op.teachingliteapp.sender.ui;



/**
 * Created by Genji on 2015/4/25.
 */
public class DeviceDisplay {

    String deviceName;
    String ip;

    public DeviceDisplay(String deviceName, String ip) {

        this.deviceName = deviceName;
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @Override
    public String toString() {
        return deviceName + "\t(" + ip + ")";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeviceDisplay that = (DeviceDisplay) o;
        return this.getIp().equals(that.getIp());

    }
}
